$OpenBSD: patch-main_php_ini_c,v 1.1.1.1 2013/08/07 16:35:46 robert Exp $
--- main/php_ini.c.orig.port	Wed Jul  3 08:10:53 2013
+++ main/php_ini.c	Sat Jul 27 18:39:50 2013
@@ -559,7 +559,7 @@ int php_init_config(TSRMLS_D)
 
 		/* If still no ini file found, search for php.ini file in search path */
 		if (!fh.handle.fp) {
-			fh.handle.fp = php_fopen_with_path("php.ini", "r", php_ini_search_path, &php_ini_opened_path TSRMLS_CC);
+			fh.handle.fp = php_fopen_with_path("php-${PV}.ini", "r", php_ini_search_path, &php_ini_opened_path TSRMLS_CC);
 			if (fh.handle.fp) {
 				fh.filename = php_ini_opened_path;
 			}
